/// <reference path="../../lib/require.d.ts"/>

import {Input} from "./input";
import {ComponentFactory} from "../../component-factory";
import {ComponentProps} from "../../component";

class InputFactory implements ComponentFactory<Input>{
    componentKey: string;
    name: string;
    icon: string;
    template: string;
    propsTpl: string;

    constructor(){
        this.componentKey = Input.ComponentKey;
        this.name = Input.ComponentName;
        this.icon = "";
        this.template = require('./input.tpl');
        this.propsTpl = require('./input-editor.tpl');
    }

    createComponent(){
        return new Input();//
    }

    initComponent(props: ComponentProps){
        return new Input(props);
    }
}

export default new InputFactory();